<?php
$uservalue=$_POST['uservalue'];
$pwd=$_POST['pwd'];

$exitUser=['zhangsan','lisi','wangwu'];


if (in_array($uservalue,$exitUser)) {
    echo "此用户已被注册";
} else if($uservalue==null) {
    echo "不能为空";
} else{
    echo "√";
}


